<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>

<script>
  for (i = 100, g = 0; i <= 200; i++) {
    for (j = 2; j < i; j++) {
      if (i % j == 0) {
        g++;
        break;
      }
    }
    if (g == 0) {
      console.log(`${i}为质数`);
    } else {
      g = 0;
    }
  }
</script>
